//
//  DataModel.m
//  测试demo
//
//  Created by ycx on 2019/6/27.
//  Copyright © 2019 ycx. All rights reserved.
//

#import "DataModel.h"

@implementation DataModel
-(id)initDic:(NSDictionary *)dic
{
    if(self = [super init])
    {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
-(void)setValue:(id)value forKey:(NSString *)key
{
    if(value == nil)
    {
        [super setValue:@"" forKey:key];
        
    }
    else
    {
        [super setValue:value forKey:key];
    }
    
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
@end
